@extends('layouts.default')

@section('title','微博主页')
@section('content')
    @if (Auth::check())
        <div class="row">
            <div class="col-md-8">
                <section class="status_form">
                    @include('topics._topic_create')
                </section>
                <h4>微博列表</h4>
                <hr>
                @include('shared._feed')
            </div>
            <aside class="col-md-4">
                <section class="user_info">
                    @include('shared._user_info', ['user' => Auth::user()])
                </section>
                <section class="stats mt-2">
                    @include('shared._stats', ['user' => Auth::user()])
                </section>
            </aside>
        </div>
    @else
        <div class="bg-light p-3 p-sm-5 rounded">
            <h1>Hello World</h1>
            <p class="lead">
                您所看到的是一个入门级的<a href="#">Laravel项目</a> ，它将带您进入Laravel的世界。
            </p>
            <p>
                请记录下您的美好回忆~
            </p>
            <p>
                <a class="btn btn-lg btn-success" href="{{route('user.create')}}" role="button">我要注册</a>
            </p>
        </div>
    @endif
@stop
